-------------------------------------------------------
---- Connect OIOREST 3.0.0 Postman integration kit ----
-------------------------------------------------------

This kit contains the following files
- Connect OIOREST 3.0.0.postman_collection.json
-- The Postman v2.1 collection JSON that can be imported in Postman

- Schemas.zip
-- A collection of XML schema files (.xsd) utilized by the Connect OIOREST resources.
-- Connect OIOREST 3.0.0 specific schemas are found in directory "urn.oio.fjernprint/3.0.0"

- SampleLetter.PDF
-- The Base64 of this file is stored in the Postman collection variable "SampleLetterPdfBase64"
-- It is used as the main document on all requests

- SampleLetter.docx
-- The Base64 of this file is stored in the Postman collection variable "SampleLetterDocBase64"
-- It is used as an attachment to display attaching a non-PDF file

- SampleSignableLetter.pdf
-- The Base64 of this file is stored in the Postman collection variable "SampleSignableLetterPdfBase64"
-- It is used in the demonstration of e-Boks sign orders and it will pass the NemID signable PDF validation on e-Boks side

- SampleSignOrderEmailBody.html
-- The Base64 of this file is stored in the Postman collection variable "SampleSignOrderEmailBody"
-- It is used as an HTML email body to accompany a main document for sign orders

- SampleInvoiceEmailBody.html
-- The Base64 of this file is stored in the Postman collection variable "SampleInvoiceEmailBody"
-- It is used as an HTML email body to allow user to pay for the invoice

- sample_certificate_public.cer
-- The public key of the certificate file sample_certificate_private.pfx.
-- The public key can be uploaded in the Connect portal and requests made for the afsendersystem must have a matching private key

- sample_certificate_private.pfx
-- A sample certificate including the private key.
-- NOTE: This should only be used for initial testing/prototyping. The certificate should be swapped out as soon as possible to a 
-- OCES3 certificate issued for the integration purpose. This should only be used if a dedicated OCES3 certificate can not easily be
-- obtained before testing/prototyping.
-- Password: i9V0Mx?fZ73y

-------------------------
---- Getting started ----
-------------------------

1. Import the "Connect OIOREST Postman Collection.json" in Postman using File > Import
2. Go to Postman Settings > Certificates. Add the private key for the afsendersystem being used for the host "https://testprint.sconnect.dk" (Test) or "https://print.sconnect.dk" (Prod)
3. Select the "Connect OIOREST" collection in Postman and navigate to the collection Variables and configure the variables accordingly

--------------------------------------
---- Postman collection variables ----
--------------------------------------

- ConnectBaseUrl
-- The base URL for the API. This can be changed to target either test or production

- AfsendersystemId
-- The Connect Afsendersystem ID to be used in all requests

- ForsendelsestypeId
-- The Connect Forsendelsestype ID to be used in all relevant requests

- AfsendelsesId
-- The Afsendelses ID to be used in all relevant requests. This value is used for all requests creating/targeting a shipment in Connect.
-- NOTE: The AfsendelsesId within the context of an afsendersystem needs to be unique. Therefore you must keep changing this ID after having created a new shipment before creating another shipment.

- MasseforsendelsesId
-- The Masseforsendelse ID to be used in all relevant requests. This value is used for all requests creating/targeting a masseforsendelse in Connect.
-- Note: The MasseforsendelsesId within the context of an afsendersystem needs to be unique. Therefore you must keep changing this ID after having created a new masseforsendelse before creating another masseforsendelse. A masseforsendelse can be used until it has been marked as closed.

- SampleLetterPdfBase64
-- Base64 of file SampleLetter.PDF

- SampleLetterDocBase64
-- Base64 of file SampleLetter.docx

- SampleSignableLetterPdfBase64
-- Base64 of file SampleSignableLetter.pdf

- SampleSignOrderEmailBody
-- Base64 of file SampleSignOrderEmailBody.html

- SampleInvoiceEmailBody
-- Base64 of file SampleInvoiceEmailBody.html